﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FamilyTree.localhost8081;

namespace FamilyTree
{
    public partial class FrmRes : Form
    {
        public FrmRes()
        {
            InitializeComponent();
        }
        //注册按钮
        private void btnRes_Click(object sender, EventArgs e)
        {
            string id = txtUser.Text.Trim();
            string pwd = txtPwd.Text;
            string ip_addr = txtIp.Text.Trim();
            string mac_addr = txtMac.Text.Trim();
            localhost8081.WebServiceTestSoapClient fm = new WebServiceTestSoapClient();
             string message= fm.Register(id, pwd, ip_addr, mac_addr);
            MessageBox.Show(message, "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
